<template>
	<view id="infoSearch">
		<!-- <view class="nav-box"> -->
			<image v-if="path" :src="path" style="width:400px;height: 700px;"></image>
		<!-- </view> -->
	</view>
</template>
<script>
	import urlConfig from '@/common/urlConfig.js'
	import { reportFile } from '@/api/reportCheck/index'
	import { base64ToPath } from '@/common/image-tools.js'
	export default {
		data() {
			return {
				userInfo: {},
				projectInfo: {},
				path: '',
			};
		},
		onLoad(params) {
			this.userInfo = uni.getStorageSync('userInfo');
			this.projectInfo = uni.getStorageSync('projectInfo');
			this.getSampleInfo(params.qrCode)
		},
		methods: {
			getSampleInfo(qrCode){
				this.path = `${urlConfig}/quality/report/reportFile?qrcode=${qrCode}`
			}
		},
	}
</script>

<style lang="scss">
	#infoSearch {
		overflow: hidden;
		min-height: 100vh;
		background-color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		.nav-box {
			width: 100vw;
			height: 160px;
			margin-top: -44px;
			padding: 56px 20px 56px 20px;
			background-image: url('../../static/img/home/head-bg.png');
		
			.nav-box-text {
				height: 50px;
				display: flex;
				align-items: center;
		
				.person {
					width: 48px;
					height: 48px;
				}
				.welcome {
					color: #333;
					font-size: 32rpx;
					margin-left: 40rpx;
				}
			}
		}
	}
	.uni-center {
		width: 100vw;
		min-height: calc(100vh - 44px);
	}
</style>
